Selects all records in the grid.

<div class="definition">
    selectAll()
</div>

Returns <i>integer</i>, number of milliseconds it took to resize.

<h4>Description</h4>

Selects all records in the <span class="method">.records</span> array and refreshes them on the screen. The record is identified by the
<span class="property">.recid</span> property, which is a required property for each record object.
Some records might be not shown, but they will still be selected.
For example, if you have a local data source and in the list you see only first page, <span class="method">.selectAll()</span> will still
select all records. The method emits <a class="methos" href="w2grid.onSelect">.onSelect</a> event once with recid parameter set to 'all'.

<div style="height: 10px"></div>

If you have grid defined in the following way:
<textarea class="javascript">
let grid = new w2grid({
    name    : 'grid',
    columns: [
        { field: 'recid', text: 'ID', size: '50px' },
        { field: 'lname', text: 'Last Name', size: '30%' },
        { field: 'fname', text: 'First Name', size: '30%' },
        { field: 'email', text: 'Email', size: '40%' },
        { field: 'sdate', text: 'Start Date', size: '120px' },
        { field: 'sdate', text: 'End Date', size: '120px' }
    ],
    records: [
        { recid: 1, fname: 'John', lname: 'doe', email: 'vitali@gmail.com', sdate: '1/3/2012' },
        { recid: 2, fname: 'Stuart', lname: 'Motzart', email: 'jdoe@gmail.com', sdate: '2/4/2012' },
        { recid: 3, fname: 'Jin', lname: 'Franson', email: '--', sdate: '4/23/2012' },
        { recid: 4, fname: 'Susan', lname: 'Ottie', email: 'jdoe@gmail.com', sdate: '5/3/2012' },
        { recid: 5, fname: 'Kelly', lname: 'Silver', email: 'jdoe@gmail.com', sdate: '4/3/2012' },
        { recid: 6, fname: 'Francis', lname: 'Gatos', email: 'vitali@gmail.com', sdate: '2/5/2012' }
    ]
});
</textarea>

You can select all records:
<textarea class="javascript">
grid.selectAll();
</textarea>

There are two events related to selection of records: <a class="property" href="w2grid.onSelect">onSelect</a> and
<a class="property" href="w2grid.onUnselect">onUnselect</a>. Calling <span class="property">.selectAll</span> will
trigger <a class="property" href="w2grid.onSelect">onSelect</a> event for each record.
